package com.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单实体
 */
public class Order implements Serializable {

    /** 编号 */
    private Long id;
    /** 订单编号 */
    private String orderId;
    /** 订单类型 */
    private Integer orderType;
    /** 产品编号 */
    private String productId;
    /** 订单总额 */
    private Double totalPrice;
    /** 创建时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;
    /** 交货日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date deliveryDate;
    /** 公司编号 */
    private String companyId;
    /** 责任人工号 */
    private String chargePersonId;
    /** 订单状态 */
    private Integer status;
    /** 发货日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sendDate;
    /** 结算时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date settlementDate;
    /** 支付状态 */
    private Integer payStatus;
    /** 订单创建人 */
    private String creator;
    /** 保留字段1 */
    private String standbyOne;
    /** 保留字段2 */
    private String standbyTwo;
    /** 保留字段3 */
    private String standbyTre;

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderId='" + orderId + '\'' +
                ", orderType=" + orderType +
                ", productId='" + productId + '\'' +
                ", totalPrice=" + totalPrice +
                ", createDate=" + createDate +
                ", deliveryDate=" + deliveryDate +
                ", companyId='" + companyId + '\'' +
                ", chargePersonId='" + chargePersonId + '\'' +
                ", status=" + status +
                ", sendDate=" + sendDate +
                ", settlementDate=" + settlementDate +
                ", payStatus=" + payStatus +
                ", creator='" + creator + '\'' +
                ", standbyOne='" + standbyOne + '\'' +
                ", standbyTwo='" + standbyTwo + '\'' +
                ", standbyTre='" + standbyTre + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getChargePersonId() {
        return chargePersonId;
    }

    public void setChargePersonId(String chargePersonId) {
        this.chargePersonId = chargePersonId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getSendDate() {
        return sendDate;
    }

    public void setSendDate(Date sendDate) {
        this.sendDate = sendDate;
    }

    public Date getSettlementDate() {
        return settlementDate;
    }

    public void setSettlementDate(Date settlementDate) {
        this.settlementDate = settlementDate;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getStandbyOne() {
        return standbyOne;
    }

    public void setStandbyOne(String standbyOne) {
        this.standbyOne = standbyOne;
    }

    public String getStandbyTwo() {
        return standbyTwo;
    }

    public void setStandbyTwo(String standbyTwo) {
        this.standbyTwo = standbyTwo;
    }

    public String getStandbyTre() {
        return standbyTre;
    }

    public void setStandbyTre(String standbyTre) {
        this.standbyTre = standbyTre;
    }
}
